package com.googlecode.struts2tagsplugin.views.velocity.components;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.components.Component;

import com.googlecode.struts2tagsplugin.components.TooglePanel;
import com.opensymphony.xwork2.util.ValueStack;

/**
 * @see TooglePanel
 */
public class TooglePanelDirective extends TagsAbstractDirective {

    @Override
    protected Component getBean(ValueStack stack, HttpServletRequest req,
        HttpServletResponse res) {
        return new TooglePanel(stack, req, res);
    }

    @Override
    public String getBeanName() {
        return "tooglepanel";
    }
}
